import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    // 发起审核
    audit (params) {
        return httpPost({
            url: '/turnover/audit/audit',
            params
        })
    },
    // 提交审核
    commit (params) {
        return httpPost({
            url: '/turnover/audit/commit',
            params
        })
    },
    // 获取审核历史
    getAuditHistory (params) {
        return httpPost({
            url: '/turnover/audit/getAuditHistory',
            params
        })
    },
    // 获取流程按钮显示状态
    getCurrentUnitInfo (params) {
        return httpPost({
            url: '/turnover/audit/getCurrentUnitInfo',
            params
        })
    },
    // 单步撤回
    undoAudit (params) {
        return httpPost({
            url: '/turnover/audit/undoAudit',
            params
        })
    },
    // 作废
    nullify (params) {
        return httpPost({
            url: '/turnover/audit/nullify',
            params
        })
    },
}

export default request